export const message = (type, message) => {
    return {
        type: type ? 'success' : 'error',
        message,
        center: true,
        duration: 1500
    }
}